package com.yz.group5.med_booking.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yz.group5.med_booking.entity.MedicalRecord;
import com.yz.group5.med_booking.mapper.MedicalRecordMapper;
import com.yz.group5.med_booking.service.MedicalRecordService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MedicalRecordServiceImpl
        extends ServiceImpl<MedicalRecordMapper, MedicalRecord>
        implements MedicalRecordService {

    @Override
    public List<MedicalRecord> listAllMedicalRecords() {
        // 调用基类的selectList方法查询全部病历记录
        return baseMapper.selectList(null);
    }

    @Override
    public List<MedicalRecord> getByRegistrationId(Integer registrationId) {
        return List.of();
    }

    @Override
    public List<MedicalRecord> getHistoryByPatientId(Integer patientId) {
        return List.of();
    }

    @Override
    public boolean applyHospitalization(Integer id) {
        return false;
    }
}